// src/store/reducers/deviceSlice.ts
import { createSlice } from '@reduxjs/toolkit'

const deviceSlice = createSlice({
  name: 'device',
  initialState: {
    curDevice: "desktop",
  },
  reducers: {
    setCurDevice: (state, action) => {
      state.curDevice = action.payload
    }
  }
})

export const {setCurDevice} = deviceSlice.actions
export default deviceSlice.reducer